package vip.sweet.biz.modular.expert.service.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vip.sweet.biz.modular.expert.entity.BizExpertCertificates;
import vip.sweet.biz.modular.expert.mapper.BizExpertCertificatesMapper;
import vip.sweet.biz.modular.expert.params.BizExpertCertificatesAddParams;
import vip.sweet.biz.modular.expert.service.BizExpertCertificatesService;

/**
 * @author ASUS
 * @Date 2025/10/5 0:13
 * @Descripition
 */
@Service
public class BizExpertCertificatesServiceImpl extends ServiceImpl<BizExpertCertificatesMapper, BizExpertCertificates> implements BizExpertCertificatesService {
    @Override
    public boolean add(BizExpertCertificatesAddParams bizExpertCertificatesAddParams) {
        if (ObjectUtil.isNotEmpty(bizExpertCertificatesAddParams))
            return save(BeanUtil.toBean(bizExpertCertificatesAddParams, BizExpertCertificates.class));
        return false;
    }
}
